//
//  LBMiddleIndicatorCell.m
//  LBMiddleExpandLoopView_Example
//
//  Created by liubo on 2023/10/10.
//  Copyright © 2023 liubo. All rights reserved.
//

#import "LBMiddleIndicatorCell.h"
#import <Masonry/Masonry.h>

@interface LBMiddleIndicatorCell ()

@property (nonatomic, strong) UILabel *titleLabel;

@end

@implementation LBMiddleIndicatorCell

- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithReuseIdentifier:reuseIdentifier]) {
        [self setUpUI];
    }
    return self;
}

- (void)setUpUI
{
    [self addSubview:self.titleLabel];
    [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.centerY.mas_equalTo(0);
            
    }];
}

- (void)updateWithModel:(id)model
{
    self.titleLabel.text = model;
}

#pragma mark - lazy load

- (UILabel *)titleLabel
{
    if (!_titleLabel) {
        _titleLabel = [[UILabel alloc] init];
    }
    return _titleLabel;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
